﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

using ParamSetCollection.General.ParamTable;
using ParamSetCollection.General.ParamTable.JTRII;
using ParamSetCollection.General.ParamTable.JTRII.DataTable;
using MainController.Hardware.PLC;
using MainController;
using MainController.Hardware.Machine;

using ParamSetCollection.General.Contexts;

namespace NeoReflow.UI.MainForm
{
    /// <summary>
    /// JTRMainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class JTRMainWindow : Window
    {
        public JTRMainWindow()
        {
            InitializeComponent();

            Init();
        }

        private void Init()
        {

            //初始化主机


            //初始化默认系统设置参数


            //显示页面

            //初始化Runtime

            RuntimeHelper runtimeHelper = new RuntimeHelper();

            JTRSeries jTRSeries = new JTRSeries();
            jTRSeries.Start();



            jTRSeries.jtrParam.svParam.RailWidthCtrlAllowTempSV.SetValue("100");
            jTRSeries.jtrParam.svParam.Rail1TargetWidthSV.SetValue("100");

            //MESWorks.MESHelper mes = new MESWorks.MESHelper();
            //mes.Start();

          

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Example.ExampleUI pf = new Example.ExampleUI();
            pf.ShowDialog();
        }
    }
}
